
/********************************************************************************
** This file contains the declaration of OpenQ10 TextEdit
**
** Created: Fri 30. Nov 09:26:39 2007
**      by: Imran Shahid
**
********************************************************************************/

#ifndef TEXTEDIT_H
#define TEXTEDIT_H

#include <QTextEdit>

class QAction;
class QColor;
class QFont;

class TextEdit : public QTextEdit {
    Q_OBJECT

public:
    TextEdit(QWidget *parent = 0);

public slots:
    void textColorChanged(QColor *color);
    void backgroundColorChanged(QColor *color);
    void fontChanged(QFont *font);

private:
    void setupActions();

private slots:
    void clipboardDataChanged();

private:
    QAction *actionUndo;
    QAction *actionRedo;
    QAction *actionCut;
    QAction *actionCopy;
    QAction *actionPaste;
};

#endif // TEXTEDIT_H

